package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.PcbaDeviceRelatedDeviceParam;
import com.sailfish.springbootdemo.pojo.db1.PcbaDeviceRelatedTechParam;

import java.util.List;

public interface PcbaDeviceRelatedTechParamService {

    /**
     * 查询
     *
     * @param pcbaDeviceResourceId
     * @return
     */
    List<PcbaDeviceRelatedTechParam> getAllByDeviceResourceId(Integer pcbaDeviceResourceId);

    /**
     * 新增或者修改
     *
     * @param pcbaDeviceRelatedTechParam
     * @param mode
     * @return
     */
    Result addOrUpdateDeviceRelatedParam(PcbaDeviceRelatedTechParam pcbaDeviceRelatedTechParam, String mode);

    /**
     * 新增
     *
     * @param pcbaDeviceRelatedTechParam
     * @return
     */
    Boolean addDeviceRelatedParam(PcbaDeviceRelatedTechParam pcbaDeviceRelatedTechParam);

    /**
     * 更新
     *
     * @param pcbaDeviceRelatedTechParam
     * @return
     */
    Boolean updateDeviceRelatedParam(PcbaDeviceRelatedTechParam pcbaDeviceRelatedTechParam);

    /**
     * 根据设备资源和key查询
     *
     * @param pcbaDeviceResourceId
     * @param techDeviceParamKey
     * @return
     */
    PcbaDeviceRelatedTechParam getPcbaDeviceRelatedTechParamByResourceIdAndKey(Integer pcbaDeviceResourceId, String techDeviceParamKey);
}
